<?php
require './curl.php';
$id = $_REQUEST['id'];
if(strlen($id) > 15) {
    $html = curl_get_contents($id);
    preg_match('/(playlistId = "|playlistId=")(.*)"/U', $html, $showid); // 获取分类名称、showid
    $id = $showid[2];
}
$str = iconv("gb2312", "utf-8", curl_get_contents("https://pl.hd.sohu.com/videolist?playlistid={$id}"));
echo $str;
?>